home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / progut~1 / iostream.zoo / test / Makefile < prev    next >
Encoding:
Makefile  |  1991-09-22  |  597 b   |  34 lines

  1. # Assumes GNU make
  2.  
  3. CROSSDIR = /net/acae127/home/bammi/atari/cross-gcc
  4. CROSSLIB = $(CROSSDIR)/lib
  5. CROSSBIN = $(CROSSDIR)/bin
  6.  
  7. AR    = $(CROSSBIN)/car
  8. CC    = cgcc
  9. GXX    = cg++
  10.  
  11. CPLUS=$(GXX) $(COMMONDEFINES)
  12.  
  13. %.o: %.cc
  14.     $(CPLUS) -c  -I../include $<
  15.  
  16. ALL=tst tgetl tfile
  17. all: $(ALL)
  18.  
  19. tst: tst.o
  20.     $(CPLUS) -o tst tst.o -L ../src -lio -v
  21. tgetl: tgetl.o
  22.     $(CPLUS) -o tgetl tgetl.o -L ../src -lio -v
  23. tfile: tfile.o
  24.     $(CPLUS) -o tfile tfile.o -L ../src -lio -v
  25.  
  26. test: tfile
  27.     tfile <tFile.inp >tFile.out 2>&1
  28.     diff -c tfile.out expected.out
  29. clean:
  30.     rm -f *.o
  31.  
  32. realclean: clean
  33.     rm -f $(ALL) tfile.out core report
  34.